package uy.com.dino.samefile.service.impl;


import uy.com.dino.samefile.dao.FileInfoDao;
import uy.com.dino.samefile.model.FileInfo;
import uy.com.dino.samefile.service.FileInfoService;

import java.util.List;

public class FileInfoServiceImpl implements FileInfoService {

    private FileInfoDao fileInfoDao;

    public void setFileInfoDao(FileInfoDao fileInfoDao) {
        this.fileInfoDao = fileInfoDao;
    }

    @Override
    public void saveFileInfo(List<FileInfo> list) {
        for (FileInfo fileInfo : list) {
            this.fileInfoDao.insert(fileInfo);
        }

    }
}
